-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TAS-2525] 💄 Purchase CTA button improvement #1948
[TAS-2525] 💄 Purchase CTA button improvement #1948
Conversation
AuroraHuang22
commented
Nov 13, 2024
•
edited
Loading
edited
- - edition button
- - cta button
- - column left UI
- - gift dialog
- - discount + stock label
<div class="text-like-green text-[16px] font-500">{{ name }}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="flex flex-co whitespace-nowrap"> | ||
<div v-if="discountInfo" class="text-like-green text-[12px]"> | ||
{{ discountInfo.originalPriceLabel }} | ||
</div> | ||
<div class="text-like-green text-[16px] font-500"> | ||
{{ priceLabel }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use v-text
for content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div> | ||
<NFTStockLabel :stock="stock" /> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the extra div for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</div> | ||
</div> | ||
|
||
<div class="flex flex-co whitespace-nowrap"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
<div class="flex flex-co whitespace-nowrap"> | |
<div class="flex flex-col whitespace-nowrap"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/NFTEditionSelect.vue
Outdated
<p class="ml-[8px]"> | ||
{{ $t('nft_edition_select_confirm_button_text_add_to_cart') }} | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use v-text
for content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/NFTEditionSelect.vue
Outdated
<div class="text-[18px] font-500 text-dark-gray w-full"> | ||
{{ $t('nft_edition_select_section_label') }} | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use v-text
for content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/NFTEditionSelect.vue
Outdated
/> | ||
</template> | ||
|
||
class="hidden laptop:block border-b-[1px] border-[#ebebebeb] w-full my-[16px]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is border with transparency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the hex value #ebebebeb
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isAllSoldOut() { | ||
return [this.formattedCollection].every( | ||
item => item.stock === 0 || item.priceLabel === undefined | ||
); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why make an single item array? Just check this.formattedCollection
without using .every()
would do
}, | ||
data() { | ||
// NOTE: If the selected item is out of stock, select another item. | ||
const items = [...this.items]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why clone items?
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |